import request from '@/utils/request'

// 查询用户资源列表
export function listUser_video(query) {
  return request({
    url: '/user/user_video/list',
    method: 'get',
    params: query
  })
}

// 查询用户资源详细
export function getUser_video(userVideoId) {
  return request({
    url: '/user/user_video/' + userVideoId,
    method: 'get'
  })
}

// 新增用户资源
export function addUser_video(data) {
  return request({
    url: '/user/user_video',
    method: 'post',
    data: data
  })
}

// 修改用户资源
export function updateUser_video(data) {
  return request({
    url: '/user/user_video',
    method: 'put',
    data: data
  })
}

// 删除用户资源
export function delUser_video(userVideoId) {
  return request({
    url: '/user/user_video/' + userVideoId,
    method: 'delete'
  })
}
